*{
    margin: 0px;
    padding: 0px;
}
html,body{
    height: 100%;
}
body{
    background-color: wheat;
    position: relative;
}
.conter{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%); 
    border: 1px solid black;
    width: 400px;
    height: 500px;
    background-color: white;
    border-radius: 15px;
    perspective: 1000px; /* 创建3D空间！ */
}
p{
    font-size: 20px;
    font-weight: 1000;
    color: black;
}
button{
    position: relative;/*对于当前元素*/
    left: 100px;
    padding: 3%;
    border: 2px solid black;
    border-radius: 50px;
    cursor: pointer;
}
button:active{
    transform: scale(0.9);
    background-color: yellow;
}
.card1,.card2,.card3{
    margin: 20px;
    padding: 10px;
    border: 6px solid snow;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 60px;
    background-color: black;
    border-radius: 15px;
    transition: 0.3s ease-out;
}
.card1:hover{
    background-color: white;
    transform: scale(1.1);
    cursor: pointer;
    transform: translate3d(0px,-10px,20px);
}
.card2:hover{
    background-color: white;
    transform: scale(1.1);
    cursor: pointer;
    transform: translate3d(0px,-10px,-20px);
}
.card3:hover{
    background-color: white;
    transform: scale(1.1);
    cursor: pointer;
    transform: translate3d(0px,10px,20px);
}